import requests

headers = {
'accept': 'text/javascript, application/javascript, application/ecmascript, application/x-ecmascript, */*; q=0.01',
'accept-encoding': 'gzip, deflate, br',
'accept-language': 'zh-CN,zh;q=0.9,en;q=0.8,en-GB;q=0.7,en-US;q=0.6',
'cookie': 'cna=wFtcGuIf3jsCAXj01OWEB1l/; t=6ae9445100f41be8332c4ab177842a3d; ariaDefaultTheme=default; ariaFixed=true; ariaReadtype=1; ariaMouseten=null; ariaStatus=false; _m_h5_tk=8b6c935874eb97a78b3507ddc8d18a48_1643040395064; _m_h5_tk_enc=6d3b5bbff56b8f0671af1048231cb1d6; xlly_s=1; cookie2=13a9a0b4832a393fc665ff2417121a5b; uc1=cookie14=UoewAwiR8t%2FuyQ%3D%3D; _tb_token_=fde8e3eb877ea; l=eB_8TvjugtGy64I6BOfahurza77OSIRYWuPzaNbMiOCP_kCH5JtVW6LcfwYMC3hVh68vR3uY4V13BeYBqnjhj7hJ1BR_OWMmn; tfstk=clahB0YvokoCNamgcwgQsGpDAlSAZPTxd4gU7r_f_AbqWVzNiOxw02I96AXfL31..; isg=BCwsedl7YQzYS3Uta98JEEwT_Qpe5dCPn9_yP4ZtOFd6kcybrvWgHyInsFkpPAjn',
'referer': 'https://item-paimai.taobao.com/pmp_item/609160317276.htm?s=pmp_detail&spm=a213x.7340941.2001.61.1aec2cb6RKlKoy%EF%BC%8C%E6%83%B3%E8%A6%81%E5%BE%97%E5%88%B0%E8%BF%99%E4%B8%AA%E7%BD%91%E5%9D%80https://item-paimai.taobao.com/api/pmp/34078065117276/bid-list?_ksTS=1576480179404_132&callback=jsonp133%E4%B8%AD%E5%AF%B9%E5%BA%94%E7%9A%84bidBasic%E4%BF%A1%E6%81%AF%E3%80%82',
'sec-fetch-dest': 'empty',
'sec-fetch-mode': 'cors',
'sec-fetch-site': 'same-origin',
'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.99 Safari/537.36 Edg/97.0.1072.69',
'x-requested-with': 'XMLHttpRequest'
}
r2=requests.get("https://item-paimai.taobao.com/api/pmp/34078065117276/bid-list?_ksTS=1576480179404_132&callback=jsonp133",headers=headers)
print(r2)
print(r2.text)
with open(r'F:/pythonfile/python-crawler/r2.txt','w') as f:
    f.write(r2.text)
